# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-html-highlight
pkgver=0.20
pkgrel=13
pkgdesc="Perl/CPAN Module HTML::Highlight"
arch=("any")
url="https://search.cpan.org/dist/HTML-Highlight"
license=("GPL" "PerlArtistic")
source=("https://www.cpan.org/authors/id/T/TR/TRIPIE/HTML-Highlight-$pkgver.tar.gz")
sha256sums=('152550ee028d990f14d04330c59e7f4a43eade1ee1a02ed6314844ea5ae7a6e3')

build() {
  cd "$srcdir"/HTML-Highlight-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/HTML-Highlight-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
